package com.pm.mapper.negative;

import com.pm.entity.po.ledger.DataAnalysisTaskPo;
import com.pm.entity.po.negative.NegativeChecklist;
import com.pm.entity.po.task.TaskCompletionDegree;
import com.pm.entity.vo.NegativeChecklistVo;
import com.pm.entity.vo.TaskCompletionChildVo;
import com.pm.entity.vo.ledger.DataAnalysisVo;
import com.pm.entity.vo.task.TeamScoreRankVo;
import com.pm.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NegativeChecklistMapper extends BaseMapper<NegativeChecklist> {
    List<NegativeChecklistVo> getChecklist(@Param("negativeChecklist") NegativeChecklist negativeChecklist);

    Integer addChecklist(@Param("negativeChecklist") NegativeChecklist negativeChecklist);

    Boolean deleteChecklist(Integer id);

    Boolean updateChecklist(@Param("negativeChecklist") NegativeChecklist negativeChecklist);

    NegativeChecklistVo getAllChecklistId(Integer id);

    Double getNegativeScore(TaskCompletionChildVo TaskCompletionChildVo1);

    List<TaskCompletionDegree> getTeamScoreRank(TeamScoreRankVo teamScoreRankVo);

    Double getTaskNum(DataAnalysisVo dataAnalysisVo);

    List<DataAnalysisTaskPo> getAnalysisTask();

    Double getTeamScoreByTaskId(DataAnalysisVo dataAnalysisVo);
}